import cookie from 'js-cookie'
import dayjs from 'dayjs'
import md5 from 'blueimp-md5'

const install = (Vue, opts) => {
  Vue.prototype.$cookie = cookie
  Vue.prototype.$dayjs = dayjs
  Vue.prototype.$md5 = md5
  Vue.prototype.$bool = function(str) {
    return /^true$/i.test(str)
  }
}

export default install
